﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body onload="ReceiveMessage()">
<div>
    <div id="receiveDV">
        ABCDEFG
    </div>
</div>
<script type="text/javascript">
    function ReceiveMessage() {
        var parentWin = window.parent;
        window.onmessage = function (e) {
            document.getElementById('receiveDV').innerHTML = e.origin + " say: " + e.data;
            parentWin.postMessage("iframe已收到消息！",'*');
        }
    }

</script>

</body>
</html>
